package com.lz.ub

/**
 * @author You
 * UBC蓝牙 回调类, 在主线程中执行
 */
interface UBCCallback {

    //设备连接上
    fun onConnected(device: UBCDevice, isAssist: Boolean)

    //设备断开
    fun onDisconnected(device: UBCDevice, isAssist: Boolean)

    //在主线程中回调
    fun onReadHex(device: UBCDevice, bytes: ByteArray, start: Int, size: Int, isAssist: Boolean)

    //普通文本
    fun onRead(device: UBCDevice, data: String, isAssist: Boolean)
}